package request

type TmallServicecenterServicestoreCreateservicestorecapacityRequest struct {
	/*
	   业务类型     */
	BizType *string `json:"biz_type" required:"true" `
	/*
	   json格式，在某个业务类型(biz_type)下,类目所覆盖区域对应的容量。一个网点承接了空调和热水器的安装, 空调覆盖的区域是杭州市上城区和下城区，容量是10； 热水器覆盖的区域是杭州市下城区和江干区，容量是18；洗衣机和冰箱覆盖区域一样都是杭州市上城区和西湖区，合并计算容量30     */
	CategoryIdsAndAreaCodesAndCapacity *string `json:"category_ids_and_area_codes_and_capacity" required:"true" `
	/*
	   serviceCodes列表,|分隔     */
	ServiceCodes *string `json:"service_codes" required:"true" `
	/*
	   网点编码     */
	ServiceStoreCode *string `json:"service_store_code" required:"true" `
}

func (s *TmallServicecenterServicestoreCreateservicestorecapacityRequest) SetBizType(v string) *TmallServicecenterServicestoreCreateservicestorecapacityRequest {
	s.BizType = &v
	return s
}
func (s *TmallServicecenterServicestoreCreateservicestorecapacityRequest) SetCategoryIdsAndAreaCodesAndCapacity(v string) *TmallServicecenterServicestoreCreateservicestorecapacityRequest {
	s.CategoryIdsAndAreaCodesAndCapacity = &v
	return s
}
func (s *TmallServicecenterServicestoreCreateservicestorecapacityRequest) SetServiceCodes(v string) *TmallServicecenterServicestoreCreateservicestorecapacityRequest {
	s.ServiceCodes = &v
	return s
}
func (s *TmallServicecenterServicestoreCreateservicestorecapacityRequest) SetServiceStoreCode(v string) *TmallServicecenterServicestoreCreateservicestorecapacityRequest {
	s.ServiceStoreCode = &v
	return s
}

func (req *TmallServicecenterServicestoreCreateservicestorecapacityRequest) ToMap() map[string]interface{} {
	paramMap := make(map[string]interface{})
	if req.BizType != nil {
		paramMap["biz_type"] = *req.BizType
	}
	if req.CategoryIdsAndAreaCodesAndCapacity != nil {
		paramMap["category_ids_and_area_codes_and_capacity"] = *req.CategoryIdsAndAreaCodesAndCapacity
	}
	if req.ServiceCodes != nil {
		paramMap["service_codes"] = *req.ServiceCodes
	}
	if req.ServiceStoreCode != nil {
		paramMap["service_store_code"] = *req.ServiceStoreCode
	}
	return paramMap
}

func (req *TmallServicecenterServicestoreCreateservicestorecapacityRequest) ToFileMap() map[string]interface{} {
	fileMap := make(map[string]interface{})
	return fileMap
}
